<fb:profile-pic uid="<%=@facebook_user.uid%>" linked="true" />


          <fb:dashboard>
     <fb:create-button href="new">Create a new memorylane</fb:create-button>
</fb:dashboard>
         

          <div class="body">
            <h1>Timeline List</h1>
            <% if flash[:message] %><%=flash[:message]%><%end%>
            <div class="list">
                <table>
                    <thead>
                        <tr>
                          <td><b>Id</b></td>
                           <td><b>Title</b></td>
                           <td><b>Actions</b></td>

                        </tr>
                    </thead>
                    <tbody>

                      <% timeline_counter=0 %>
                      <% @timelines.each do |timeline| %>

                               <% timeline_counter=timeline_counter+1 %>
                                <tr class=<%= ( timeline_counter.modulo(2))==0 ? "even" : "odd" %> >
                                  <td><%= timeline.id %></td>
                                  <td><%= timeline.title %></td>
                                  <td>  
                                 
                               <a href="<%= timeline.id %>"> edit </a>
                                 
                                  
                                  </td>
                                </tr>
                     <% end %>
                    </tbody>
                </table>
            </div>
            <div class="paginateButtons">
                <%= will_paginate @timelines %>
            </div>
        </div>


<fb:iframe src="http://web1.tunnlr.com:10704/timelines/1" smartsize="true" />
